package cn.school.notice.entity;

import cn.school.common.BaseVO;
import cn.school.common.utils.SysUserUtils;
import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;


@Data
@TableName("t_workflow_notice")
public class WorkflowNotice extends BaseVO {

    /**
     * id
     */
    @TableId
    @ApiModelProperty(value = "id", hidden = false)
    private Long id;

    /**
     * 通知标题
     */
    @ExcelProperty("通知标题")
    @ApiModelProperty(value = "通知标题", required = false)
    private String title;

    /**
     * 通知内容
     */
    @ExcelProperty("通知内容")
    @ApiModelProperty(value = "通知内容", required = false)
    private String content;

    /**
     * 通知用户
     */
    @ExcelProperty("通知用户")
    @ApiModelProperty(value = "通知用户", required = false)
    private String noticeUser;

    /**
     * 状态 0-未读 1-已读
     */
    @ExcelProperty("状态")
    @ApiModelProperty(value = "状态", required = false)
    private String status;


    @TableField(exist = false)
    private Integer pageNum;

    @TableField(exist = false)
    private Integer pageSize;

    /**
     * 默认租户为当前登录人的租户
     */
    private String tenantId = SysUserUtils.getSysUser().getTenantId();
}
